use "/homeKRTK/health_shocks/data_for_main_regs_event_study_20231203.dta", clear
drop if control==1

append using "/homeKRTK/health_shocks/additional_data_for_IV_and_placebo_regs_20240416.dta"
replace treated=1 if d==2
drop if d==1 & control==0

append using "/homeKRTK/health_shocks/additional_data_for_all_regs_controls_d_distrib_as_treated_20250319.dta"

* descriptives *
unique anon // 517612

gen whitecoll = 1 if occupation>=1 & occupation<=4
	recode whitecoll (.=0) if occupation>=5 & occupation<=7
gen bluecoll = 1 if whitecoll==0
	recode bluecoll (.=0)
	
gen ACC = HS
gen group = 1 if ACC==1 & ABS==1
replace group = 2 if ACC==1 & ABS==0
replace group = 3 if ACC == 0

gen manufacturing =1 if teaor1_h1==4
	recode manufacturing (.=0)
gen trade = 1 if teaor1_h1==7
	recode trade (.=0)

table group, c(mean ferfi mean kor mean bluecoll mean manufacturing mean trade)
table group, c(mean FEi mean lnw1_restr_t0 mean FEj_t0 mean FO_pre mean size_pre)
table group, c(mean log_health_12m /*mean fekvo_ft_m1 mean jaro_ft_ossz_m1 mean tbtam_ossz_m1*/)

table group, c(count anon)